package com.yangjian.main;

public class JJMain {

	public static void main(String[] args) {
		
		
		JJStack stack = new JJStack();
		
		JJProducer p = new JJProducer(stack);
		JJConsumer c = new JJConsumer(stack);
		
		p.start();
		c.start();
		

		while (true) {
			synchronized (stack) {
				stack.notifyAll();
			}
		}
	}
	
}
